/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: javaseapp - App
 * <p>Powered by webrx On 2021-08-09 09:54:33
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 16
 */
public class App {
    public static void main(String[] args) {
        int a = 30;
        int b = a;
        System.out.println(b);
        System.out.println("-----------------");
        a = 5;
        System.out.println(b);

        //数组是对象，每个数组都有地址，对象引用
        int[] aa = new int[]{1, 2, 3};
        int[] bb = aa;

        System.out.println(aa[1]);
        System.out.println(bb[1]);
        aa[1] = 1000;
        System.out.println(aa[1]);
        System.out.println(bb[1]);

        int i = 30;
        Integer n = 20;//装箱
        System.out.println(i);
        System.out.println(n.intValue());//拆箱
    }
}
